import fetch from '@/utils/fetch';
import { ajax } from '@/utils/trip/ajax'

export function addUnionPayReconciliation(obj) {
    return fetch({
      url: '/api/admin/payment/compare/order/payCompareOrder',
      method: 'post',
      data: obj
    });
}
export function getUnionPayReconciliationExcel() {
    return fetch({
      url: '/api/admin/payment/compare/order/payCompareOrder/excel',
      method: 'get',
    });
}
export function putUnionPayReconciliationExcel(obj) {
    return fetch({
      url: '/zuul/api/admin//payment/compare/order/payCompareOrder/excel',
      method: 'put',
      data: obj
    });
}
export function getUnionPayReconciliationExcelTemplate() {
    return fetch({
      url: '/api/admin/payment/compare/order/payCompareOrder/excel/template',
      method: 'get',
    });
}
export function deleteAllUnionPayReconciliation(ids) {
    return fetch({
      url: '/api/admin/payment/compare/order/payCompareOrder/list',
      method: 'delete',
      data:ids
    });
}
export function listAllUnionPayReconciliation() {
    return fetch({
      url: '/api/admin/payment/compare/order/payCompareOrder/list',
      method: 'get',
    });
}
export function getUnionPayReconciliationTable(query) {
    return fetch({
      url: '/api/admin/payment/compare/order/payCompareOrder/pageList',
      method: 'get',
      params:query
    });
}
export function delUnionPayReconciliation(id) {
    return fetch({
      url: '/api/admin/payment/compare/order/payCompareOrder/'+id,
      method: 'delete',
    });
}
export function getUnionPayReconciliation(id) {
    return fetch({
      url: '/api/admin/payment/compare/order/payCompareOrder/'+id,
      method: 'get',
    });
}
export function putUnionPayReconciliation(id,obj) {
    return fetch({
      url: '/api/admin/payment/compare/order/payCompareOrder/'+id,
      method: 'put',
      data:obj
    });
}

// 对账
export function putUnionPayCompareBill(obj) {
  return fetch({
    url: 'api/admin/payment/compare/order/payCompareOrder/compareBill',
    method: 'post',
    data:obj
  });
}